package com.slipper.ai.flow.vo;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class FlowVO {
    private String sessionId;
    private List<NodeVO> nodes = new ArrayList<>();
    private List<LineVO> lines = new ArrayList<>();
    private Map<String, Object> flowData;

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public List<NodeVO> getNodes() {
        return nodes;
    }

    public void setNodes(List<NodeVO> nodes) {
        this.nodes = nodes;
    }

    public List<LineVO> getLines() {
        return lines;
    }

    public void setLines(List<LineVO> lines) {
        this.lines = lines;
    }

    public Map<String, Object> getFlowData() {
        return flowData;
    }

    public void setFlowData(Map<String, Object> flowData) {
        this.flowData = flowData;
    }

    public void addNode(NodeVO node) {
        if (node != null) nodes.add(node);
    }
}
